/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.io.Serializable;
import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author robson
 */
@Entity
@Table(name = "pais")
public class Pais implements Serializable {

    @Id
    @Column(name = "id_pais", nullable = false)
    @SequenceGenerator(name = "seq_pais", sequenceName = "pais_id_pais_seq")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seq_pais")
    private long paisId;
    
    @Column(name = "nome_pais")
    private String nomePais;

    public Pais(long paisId, String nomePais) {
        this.paisId = paisId;
        this.nomePais = nomePais;
    }

    public Pais() {
    }

    public long getPaisId() {
        return paisId;
    }

    public void setPaisId(long paisId) {
        this.paisId = paisId;
    }

    public String getNomePais() {
        return nomePais;
    }

    public void setNomePais(String nomePais) {
        this.nomePais = nomePais;
    }
}
